<template>
    <div class="mobile-box">
        <div class="head">
            <p class="title">手机</p>
            <div class="more">
                <a href="javascript:;" target="">
                    查看更多
                    <div class="more-icon-wrap">
                        <a-icon type="right" />
                    </div>
                </a>
            </div>
        </div>
        <div class="cont">
            <div class="cont-left hover-box"></div>
            <div class="cont-rig">
                <div class="rig-ul">
                    <li v-for="n in 8" :key="n" class="hover-box">
                        <a href="javascript:;" target="">
                            <div class="figuer">
                                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a7382271e3a677bf188679ca38d68a42.jpg?thumb=1&w=250&h=250&f=webp&q=90" alt="">
                            </div>
                            <p class="p1">Xiaomi 12 Pro</p>
                            <p class="p2">全新骁龙8｜2K AMOLED屏幕</p>
                            <p class="p3">
                                <span>4699</span>元起
                            </p>
                        </a>
                    </li>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'MobileBox'
}
</script>

<style lang="less" scoped>
@import '../assets/less/utils.less';

.mobile-box {
    width: 100%;
    margin-top: 22px;

    .head {
        position: relative;
        width: 100%;
        height: 58px;

        .title {
            width: 100%;
            height: 100%;
            line-height: 58px;
            font-size: 22px;
            color: #333;
            font-weight: 200;
        }

        .more {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            z-index: 1;
            display: flex;
            align-items: center;

            a {
                display: flex;
                font-size: 16px;
                align-items: center;
                color: #333;

                .more-icon-wrap {
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    text-align: center;
                    line-height: 16px;
                    background-color: #b0b0b0;
                    color: #fff;
                    margin-left: 12px;
                }

                &:hover {
                    color: #ff6700;

                    .more-icon-wrap {
                        background-color: #ff6700;
                    }
                }
            }
        }
    }

    .cont {
        width: 100%;
        display: flex;

        .cont-left {
            width: 234px;
            height: 614px;
            .setbg('https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c583f2edc613f1be20fa415910b13ce3.jpg?thumb=1&w=293&h=768&f=webp&q=90');
            cursor: pointer;
        }

        .cont-rig {
            flex: 1;

            .rig-ul {
                width: 100%;
                display: flex;
                flex-wrap: wrap;

                li {
                    display: block;
                    width: 234px;
                    height: 300px;
                    margin-left: 14px;
                    margin-bottom: 14px;
                    background-color: #fff;
                    overflow: hidden;

                    a {
                        display: block;
                        width: 100%;
                        height: 100%;

                        .figuer {
                            width: 160px;
                            height: 160px;
                            margin: auto;
                            margin-top: 18px;

                            img {
                                width: 160px;
                            }
                        }

                        p {
                            width: 100%;
                            text-align: center;
                            font-size: 14px;

                            &.p1 {
                                margin-top: 10px;
                                color: #333;
                            }

                            &.p2 {
                                color: #b0b0b0;
                                margin-top: 3px;
                                font-size: 12px;
                                margin-bottom: 0;
                            }

                            &.p3 {
                                color: #ff6700;
                                margin-top: 10px;
                                font-size: 12px;
                            }
                        }
                    }
                }
            }
        }
    }
}
</style>